package mytest;

/**
 * @author 兴趣使然黄小黄
 * @version 1.0
 * @date 2023/3/15 0:03
 */
public class ThreadDemo01 extends Thread {

    public static void main(String[] args) {
        MyThread01 myThread01 = new MyThread01();
        myThread01.start();
        while (true) {
            System.out.println("hello main");
            try {
                sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
